package com.chumi.bootstrap.service.ba;

import java.util.List;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chumi.bootstrap.mapper.standard.ba.BaGroupMapper;
import com.chumi.bootstrap.model.standard.ba.BaGroup;
import com.chumi.bootstrap.model.standard.ba.BaGroupCriteria;

@Service
public class BaGroupService {
	
	private static final Logger LOG = LogManager.getLogger();
	
	@Autowired
	private BaGroupMapper bgm;
	
	public List<BaGroup> getGroupList(){
		BaGroupCriteria example = new BaGroupCriteria();
		example.or().andGroupLevelEqualTo(1);
		List<BaGroup> list = bgm.selectByExample(example);
		return list;
	}	
	
}
